package com.his.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 成药处方表
 * </p>
 *
 * @author Demoon Liu
 * @since 2022-02-20
 */
@TableName("medicine_prescription_record")
@Schema(description = "药品处方实体类")
public class MedicinePrescriptionRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "药品处方id")
    private Long id;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "创建时间")
    private LocalDateTime createtime;

    @Schema(description = "总金额")
    private BigDecimal amount;

    @Schema(description = "处方名称")
    private String name;

    @Schema(description = "所属诊断id")
    private Long registrationid;

    @Schema(description = "退药状态")
    private Long refundstatus;

    @Schema(description = "处方类型")
    private Integer type;

    @Schema(description = "创建人id")
    private Long createstaffid;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }
    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Long getRegistrationid() {
        return registrationid;
    }

    public void setRegistrationid(Long registrationid) {
        this.registrationid = registrationid;
    }
    public Long getRefundstatus() {
        return refundstatus;
    }

    public void setRefundstatus(Long refundstatus) {
        this.refundstatus = refundstatus;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public Long getCreatestaffid() {
        return createstaffid;
    }

    public void setCreatestaffid(Long createstaffid) {
        this.createstaffid = createstaffid;
    }

    @Override
    public String toString() {
        return "MedicinePrescriptionRecord{" +
            "id=" + id +
            ", status=" + status +
            ", createtime=" + createtime +
            ", amount=" + amount +
            ", name=" + name +
            ", registrationid=" + registrationid +
            ", refundstatus=" + refundstatus +
            ", type=" + type +
            ", createstaffid=" + createstaffid +
        "}";
    }
}
